﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model;
using Newtonsoft.Json.Linq;

namespace Controller.Helper
{
    public class Customer
    {
        public static tbl_msa120_customer_general GetCustomerbyID(string customerID)
        {
            using (var dataContext = new DCSalePriceDataContext())
            {
                var sales = (from customer in dataContext.tbl_msa120_customer_generals
                            where customer.mcustno.Equals(customerID)
                            select customer).First();


                return sales;
            }

        }
    }
}
